<?php
namespace  app\common\model;
use think\Db;
class Area extends \think\Model {
    protected $table='up_area';

    public function selectArea($where){
    $model = self::instance();
    $list = $model->where($where)->select();
    return $list;
    }


    private static $instance;

    public static function instance()
    {
        if (!(self::$instance instanceof self)) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}